/**
 * Created by wangmingxue on 16/04/14.
 */
require.config(require_config);

define([
    'jquery',
    'common',
    'ready',
    'collection',
    'template',
    'model',
    'dialog',
    'fineuploader'
], function ($, common, ready, Collection, template, Model, dialog, fineuploader) {
    var id = getUrlPath(4);
    var index = function () {
        this.init();
    };
    index.prototype = {
        init: function () {
            //this.event();
            this.fetch();
        },
        fetch: function () {
            var _this = this;
            this.collection = new Collection({
                url: _global.url.api + 'data/order_recall/' + id,
                condition: {limit: 10, offset: 0},
                model: {
                    tag_name: 'tr',
                    url: {},
                    event: {}
                },
                callback: function () {
                    loaded();
                }
            });
            this.collection.fetch();
        }
    };
    new index();
});
